import request from '@/utils/request'

// 查询游戏列列表
export function listGame(query) {
  return request({
    url: '/fuzhu/game/list',
    method: 'get',
    params: query
  })
}

// 查询游戏列详细
export function getGame(id) {
  return request({
    url: '/fuzhu/game/detail?id=' + id,
    method: 'get'
  })
}

// 新增游戏列
export function addGame(data) {
  return request({
    url: '/fuzhu/game/add',
    method: 'post',
    data: data
  })
}

// 修改游戏列
export function updateGame(data) {
  return request({
    url: '/fuzhu/game/edit',
    method: 'put',
    data: data
  })
}

// 删除游戏列
export function delGame(data) {
  return request({
    url: '/fuzhu/game/delete',
    method: 'delete',
    data: data
  })
}
